
<%@ page import="java.util.List" %>
<%@ page import="kgc.NewsService.NewsService" %>
<%@ page import="kgc.NewsServiceImpl.NewsServiceImpl" %>
<%@ page import="kgc.pojo.News_User" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<html>
<head>
    <title>Title</title>
</head>
<body>

<div>
    <table>
        <%
            NewsService newsService = new NewsServiceImpl();
            List<News_User> list3 = newsService.ServiceSelectUserAll();
            for (News_User user : list3){
        %>
        <tr>
            <td>
                <%=user.getId()%>
            </td>
            <td>
                <%=user.getUserName()%>
            </td>
            <td>
                <%=user.getPassword()%>
            </td>
            <td>
                <%=user.getEmail()%>
            </td>
            <td>
                <%=user.getUserType()%>
            </td>
            <td><a href="InsertManage.jsp?id=<%=user.getId()%>&num=2">新增</a></td>
            <td><a href="DeleteManage.jsp?id=<%=user.getId()%>&num=2">删除</a></td>
            <td><a href="UpdateManage.jsp?id=<%=user.getId()%>&num=2">修改</a></td>
            <%
                }
            %>
        </tr>
    </table>
</div>
</body>
</html>
